def cal_factorial(n):
    if n == 0:
        return 1
    return n * cal_factorial(n-1)
number = int(input("请输入一个非负整数："))
print(cal_factorial(number))
